﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/MasterPage_Base.master"
    AutoEventWireup="true" CodeFile="ModularList.aspx.cs" Inherits="System_Account_ModularList" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    目录列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td>
                            目录名称：
                        </td>
                        <td>
                            <asp:TextBox ID="txt_ModularName" runat="server" CssClass="TextBox"></asp:TextBox>
                        </td>
                        <td>
                            目录编码：
                        </td>
                        <td>
                            <asp:TextBox ID="txt_ModularCode" runat="server" CssClass="TextBox"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="Button" 
                                onclick="btn_Search_Click"/>
                            <asp:Button ID="btn_Add" runat="server" Text="增加" PostBackUrl="ModularModify.aspx" CssClass="Button"/>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table class="DataList" border="0" style="margin-top:10px;">
                    <col style="width:120px;"/>
                    <col style="width:80px;"/>
                    <col style="width:80px;"/>
                    <col style="width:100px;"/>
                    <col style="width:100px;"/>
                    <col style="width:100px;"/>
                    <col style="width:100px;"/>
                    <tr>
                        <th>
                            目录名称
                        </th>
                        <th>
                            目录编码
                        </th>
                        <th>
                            排序
                        </th>
                        <th>
                            创建人
                        </th>
                        <th>
                            创建时间
                        </th>
                        <th>
                            是否启用
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
                    <asp:Repeater ID="RepeaterList" runat="server" 
                        onitemcommand="RepeaterList_ItemCommand" 
                        onitemdatabound="RepeaterList_ItemDataBound">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%#Eval("ModularName") %>
                                </td>
                                <td style="text-align:center;">
                                    <%#Eval("ModularCode") %>
                                </td>
                                <td style="text-align:center;">
                                    <%#Eval("OrderNo") %>
                                </td>
                                <td style="text-align:center;">
                                    <%#Eval("CreateUserName") %>
                                </td>
                                <td>
                                    <%#SetShortDateTime(Eval("CreateDate").ToString()) %>
                                </td>
                                <td style="text-align:center;">
                                    <asp:Label ID="ValidText" runat="server" Text="启用"></asp:Label>
                                    <asp:LinkButton ID="BtnOperate" runat="server" CommandName="Valid" CommandArgument='<%#Eval("ModularId") %>'>修改</asp:LinkButton>
                                </td>
                                <td>
                                    <a href='ModularModify.aspx?Action=Update&Id=<%#Eval("ModularId") %>'>编辑</a>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <div class="Paginate">
                    <webdiyer:AspNetPager ID="PaginateCtl" runat="server" onpagechanged="PaginateCtl_PageChanged"/>
                </div>
                
            </td>
        </tr>
    </table>
</asp:Content>
